Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix z_sub_thr termination and improve perf #1609

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wyfo
Copy link
Contributor

@wyfo wyfo commented Nov 25, 2024

Using Thread::unpark std::process::exit allows session to be closed, and callback final print to be executed.
Callback lock accounted for 2.5% of z_sub_thr perf. Using atomic and fine-grained lock remove the performance impact (even if it doesn't really change the global outcome).

Using `Thread::unpark` `std::process::exit` allows session to be
closed, and callback final print to be executed.
Callback lock accounted for 2.5% of z_sub_thr perf. Using atomic and
fine-grained lock remove the performance impact (even if it doesn't
really change the global outcome).
@wyfo wyfo added the internal Changes not included in the changelog label Nov 25, 2024
@eclipse-zenoh eclipse-zenoh deleted a comment from github-actions bot Nov 26, 2024
@Mallets
Copy link
Member

Mallets commented Nov 26, 2024

Any change on the example should be aligned with all Zenoh bindings.
All examples should provide the same way of providing measures.
So, should all the throughput examples be updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Changes not included in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants